//******************************************************************************
// TITLE:                      	Using Classes + Inheritance 
// FILENAME:                   	WorkingTN.cpp
// PREPARED FOR:               	CS215 Section CS13-02
// PROGRAMMER(S):              	Eric (Fox) Crowell
// DEVELOPMENT DATE:           	< 12/02/13 >
// COMPILER USED:      			Microsoft Visual Studio Ultimate 2013
// TARGET PLATFORM:         	Windows 8 x64
//================================================================

#include "WorkingTN.h"

WorkingTN::WorkingTN(){
	cout << "In Working Telephone Number Default Constructor.\n";
	this->CustomerName = "Unknown";
}

WorkingTN::WorkingTN(const string &inNPA, const string &inNXX, const string &inLine, const string &inCustomerName)
: TelephoneNumber(inNPA, inNXX, inLine){
	cout << "In Working Telephone Number Parameterized Constructor.\n";
	this->CustomerName = inCustomerName;
}

WorkingTN::~WorkingTN(){
	cout << "In Working Telephone Number Destructor.\n";
}

// SETTERS
void WorkingTN::setCustomerName(const string &inCustomerName){
	this->CustomerName = inCustomerName;
}

// GETTERS
string WorkingTN::getCustomerName() const{
	return(this->CustomerName);
}

// Virtual Function (Needed to be virtual for Polymorphism)
void WorkingTN::PrintToStream(ostream &out){
	out << "Telephone Number: "
		<< this->getNPA() << "-" << this->getNXX() << "-" << this->getLine() << "\n"
		<< "Customer Name: " << this->CustomerName << "\n";
}